import request from '@/utils/request'

/**
 * 分页查询账户信息
 *
 * @param {*} query
 */
export function getSmskAccountInfoList(query) {
  return request({
    url: '/smsk/admin/account/list',
    method: 'get',
    params: query
  })
}

/**
 * 创建账户信息
 * @param {*} smskAccountInfo
 */
export function createSmskAccountInfo(smskAccountInfo) {
  return request({
    url: '/smsk/admin/account/create',
    method: 'post',
    data: smskAccountInfo
  })
}

/**
 * 更新账户信息
 * @param {*} smskAccountInfo
 */
export function updateSmskAccountInfo(smskAccountInfo) {
  return request({
    url: '/smsk/admin/account/update',
    method: 'post',
    data: smskAccountInfo
  })
}

/**
 * 删除账户信息
 * @param {*} id
 */
export function deleteSmskAccountInfo(id) {
  return request({
    url: '/smsk/admin/account/delete',
    method: 'post',
    params: { id }
  })
}
